<%@page import="com.yymmarket.forum.bbs.*,com.yymmarket.forum.user.UserBean,com.yymmarket.forum.user.UserService,com.yymmarket.forum.util.*,com.yymmarket.forum.bbs.ContentBean,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="text/vnd.wap.wml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
ContentAction webAction = new ContentAction(request,response);
int id = webAction.getParameterInt("id");
BBSService bbs = BBSService.getInstance();
int p = webAction.getParameterInt("p");
boolean flag = webAction.post();
%><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><%
if(flag) {
%><card title="帖子发布成功" ontimer="<%=response.encodeURL("forum.jsp?id="+id) %>">
<timer value="30"/>
<p>发表帖子成功<br/>
3秒之后自动跳转<br/>
<a href="forum.jsp?id=<%=id %>">直接跳转</a><br/>
</p>
</card>
<%}else { 
%><card title="发表新帖子">
<p><%= BaseUtil.top(request,response) %><%=webAction.getAttributeEnter("msg")%>
发表帖子于[<%=bbs.getBBSBeanById(id).getTitle() %>]<br/>
标题:<br/>
<input type="text" name="t"/><br/>
内容:<br/>
<input type="text" name="c"/><br/>
<anchor>发布<go href="post.jsp?id=<%=id%>" method="post">
<postfield name="title" value="$t" />
<postfield name="content" value="$c" />
</go></anchor><br/>
<a href="postX.jsp?id=<%=id %>">使用WAP2.0方式发贴</a><br/>
<a href="forum.jsp?id=<%=id %>&amp;p=<%=p %>">&lt;&lt;返回<%=bbs.getBBSBeanById(id).getTitle() %></a><br/>
<%= BaseUtil.bottom(request,response) %></p>
</card>
<%} %></wml>